package com.pack2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;

public class DemoMain {
	public static void main(String[] args) {
		//Resource resource = new FileSystemResource();
		ApplicationContext factory = new FileSystemXmlApplicationContext("src/spring.xml");
		//BeanFactory factory = new XmlBeanFactory(resource);
		Performance pf=(Performance)factory.getBean("pimplid");
		pf.perform();
		pf.performAction();

	}

}
